package dao

import (
	"time"
)

// 这是 LiMemberReceipt 的全局公开dao对象
var LiMemberReceiptDao = liMemberReceiptDao{}

// 这是 li_member_receipt表 的实体类
type LiMemberReceipt struct {
	Id             int       `json:"id" form:"id" v:"id"`                                             // ID
	CreateTime     time.Time `json:"create_time" form:"create_time" v:"create_time"`                  // 创建时间
	DeleteFlag     bool      `json:"delete_flag" form:"delete_flag" v:"delete_flag" gm:"delete_flag"` // 删除标志 true/false 删除/未删除
	IsDefault      int       `json:"is_default" form:"is_default" v:"is_default"`                     // 是否为默认选项
	MemberId       string    `json:"member_id" form:"member_id" v:"member_id"`                        // 会员ID
	MemberName     string    `json:"member_name" form:"member_name" v:"member_name"`                  // 会员名称
	ReceiptContent string    `json:"receipt_content" form:"receipt_content" v:"receipt_content"`      // 发票内容
	ReceiptTitle   string    `json:"receipt_title" form:"receipt_title" v:"receipt_title"`            // 发票抬头
	ReceiptType    string    `json:"receipt_type" form:"receipt_type" v:"receipt_type"`               // 发票类型
	TaxpayerId     string    `json:"taxpayer_id" form:"taxpayer_id" v:"taxpayer_id"`                  // 纳税人识别号

}

// 注意:这是 LiMemberReceipt 的私有dao对象
type liMemberReceiptDao struct {
	Insert func(arg LiMemberReceipt) int             //插入一条记录
	Update func(arg LiMemberReceipt) int             //更新一条记录
	Delete func(arg LiMemberReceipt) int             //删除一条记录
	Select func(arg LiMemberReceipt) LiMemberReceipt //获取一条记录
}
